﻿(function($){
	$(function(){
		var resizePage = (function () {
            $("body,.pop-page").height($(window).height());
            var ww = $(window).width(),
                wh = $("body").innerHeight(),
                popTopH = $(".pop-top").outerHeight(true),
                popFootH = $(".pop-foot").outerHeight(true),
                $wrap = $(".pop-wrap");

            $wrap.height(wh - popTopH - popFootH);
            return arguments.callee;
        })();

        $(window).resize(resizePage);
        //关闭弹出层
        $(".close-pop").on("click",function(e){
        	e.stopPropagation();
        	window.parent.$.popHide();
        })

		//test
		/*$(".sure-set-ip").click(function () {
            window.parent.$.confirmShow("111",function () {
                window.parent.$.confirmHide()
            })
        })*/

        //导入镜像相关操作
        $(".pop-wrap")
        	//镜像共享
        	.on("click",".mirror-radio",function(e){
        		e.stopPropagation();
        		$(this).closest(".text-box").find(".mirror-radio").removeClass("checked")
        		$(this).addClass("checked");
        	})
       
	})
})(jQuery)
